package com.whisperly.echotalk.bllmodel;

import androidx.annotation.Keep;

import java.io.Serializable;
@Keep
public class FindPasswordResponse implements Serializable {
    // 状态码
    private Integer code;
    
    private Boolean success;
    
    private UserWithChat userWithChat = new UserWithChat();

    // 错误响应
    public static FindPasswordResponse error(Integer code) {
        FindPasswordResponse response = new FindPasswordResponse();
        response.setSuccess(false);
        response.setCode(code);
        return response;
    }

    public static FindPasswordResponse success(UserWithChat userWithChat) {
        FindPasswordResponse response = new FindPasswordResponse();
        response.setSuccess(true);
        response.setUserWithChat(userWithChat);
        return response;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public UserWithChat getUserWithChat() {
        return userWithChat;
    }

    public void setUserWithChat(UserWithChat userWithChat) {
        this.userWithChat = userWithChat;
    }
}
